<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>导航栏</title>
</head>
<body>
<div th:fragment="nav">
    <ul class="layui-nav layui-bg-cyan" lay-filter="">
        <li class="layui-nav-item">电子招投标平台</li>
        <li class="layui-nav-item"><a href="/">首页</a></li>
<!--        <li class="layui-nav-item" th:if="${session.user!=null && session.user.status == 0}"><a href="/zb_publishJump">发布招标</a></li>-->
<!--        <li class="layui-nav-item">-->
<!--            <a href="javascript:;">下拉框</a>-->
<!--            <dl class="layui-nav-child"> &lt;!&ndash; 二级菜单 &ndash;&gt;-->
<!--                <dd><a href="">二级菜单</a></dd>-->
<!--                <dd><a href="">二级菜单</a></dd>-->
<!--                <dd><a href="">二级菜单</a></dd>-->
<!--            </dl>-->
<!--        </li>-->
        <li class="layui-nav-item fr" th:if="${session.user!=null}">
            <a href="javascript:;" th:text="${session.user.name}">下拉框</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <dd><a href="/logout">退出登录</a></dd>
                <dd th:if="${session.user.status == 0}"><a href="/zb_bam">我的招标</a></dd>
                <dd th:if="${session.user.status == 3}"><a href="/admin/bam">招标员后台</a></dd>
                <dd th:if="${session.user.status == 4}"><a href="/admin/bam1">管理员后台</a></dd>
            </dl>
        </li>

        <li class="layui-nav-item fr" th:if="${session.user==null}"><a href="/login">登录</a></li>

        <li class="layui-nav-item fr" style="margin-right: 30px" th:if="${session.user!=null && session.user.status!=3 && session.user.status!=4}">
            <a th:href="@{'/notification/'+${session.user.id}+'/0'}"><i class="layui-icon layui-icon-notice" style="font-size:20px;"></i>
                <span class="layui-badge" th:if="${unReadSize != null}" th:text="${unReadSize}">99</span>
            </a>
        </li>

        <li class="layui-nav-item fr" th:if="${session.user!=null && session.user.status == 2}"><a href="/expert/addJump">专家信息补充</a></li>
        <li class="layui-nav-item fr" th:if="${session.user!=null && session.user.status == 1}"><a href="/tbAddJump">投标人资格上传</a></li>
        <li class="layui-nav-item fr" th:if="${session.user!=null && session.user.status == 0}"><a href="/addJump">招标人资格上传</a></li>
    </ul>
</div>
</body>
</html>